package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_GCM_MDENUM"
 *     
*/
public class CcpGcmMdenum implements Serializable {

    /** identifier field */
    private String enumGuid;

    /** persistent field */
    private String enumCode;

    /** persistent field */
    private String enumName;

    /** persistent field */
    private String mdGuid2;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpGcmMdenum(String enumGuid, String enumCode, String enumName, String mdGuid2, String reserved1, String reserved2, String reserved3) {
        this.enumGuid = enumGuid;
        this.enumCode = enumCode;
        this.enumName = enumName;
        this.mdGuid2 = mdGuid2;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpGcmMdenum() {
    }

    /** minimal constructor */
    public CcpGcmMdenum(String enumGuid, String enumCode, String enumName, String mdGuid2) {
        this.enumGuid = enumGuid;
        this.enumCode = enumCode;
        this.enumName = enumName;
        this.mdGuid2 = mdGuid2;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ENUM_GUID"
     *         
     */
    public String getEnumGuid() {
        return this.enumGuid;
    }

    public void setEnumGuid(String enumGuid) {
        this.enumGuid = enumGuid;
    }

    /** 
     *            @hibernate.property
     *             column="ENUM_CODE"
     *             length="20"
     *             not-null="true"
     *         
     */
    public String getEnumCode() {
        return this.enumCode;
    }

    public void setEnumCode(String enumCode) {
        this.enumCode = enumCode;
    }

    /** 
     *            @hibernate.property
     *             column="ENUM_NAME"
     *             length="50"
     *             not-null="true"
     *         
     */
    public String getEnumName() {
        return this.enumName;
    }

    public void setEnumName(String enumName) {
        this.enumName = enumName;
    }

    /** 
     *            @hibernate.property
     *             column="MD_GUID2"
     *             length="32"
     *             not-null="true"
     *         
     */
    public String getMdGuid2() {
        return this.mdGuid2;
    }

    public void setMdGuid2(String mdGuid2) {
        this.mdGuid2 = mdGuid2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="100"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("enumGuid", getEnumGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpGcmMdenum) ) return false;
        CcpGcmMdenum castOther = (CcpGcmMdenum) other;
        return new EqualsBuilder()
            .append(this.getEnumGuid(), castOther.getEnumGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getEnumGuid())
            .toHashCode();
    }

}
